<template>
	<view class="chooseSource">
		<cu-custom bgColor="bg-gradual-blue" :isBack="true">
			<block slot="content">选择类目</block>
		</cu-custom>
		<view class="cu-bar bg-white solid-bottom margin-top">
			<view class="action">
				<text class="cuIcon-title text-orange "></text> 视频类目
			</view>
		</view>
		<view class="cu-list menu">
			<view class="cu-item" v-for="(item,index) in List" :key="index" @click="toPlay(item.type)">
				<view class="content">
					<text class="cuIcon-circlefill text-grey"></text>
					<text class="text-grey">{{item.title}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				List: [{
						title: '电影',
						type: 0
					},
					{
						title: '敬请期待...',
						type: 3
					},
				],
				company: 0, //视频播放url
			}
		},
		onLoad(option) {
			let {
				url,company
			} = option
			this.url = url
			this.company = company
		},
		methods: {
			toPlay(type) {
				if(type == 3){
					return
				}
				uni.navigateTo({
					url: '/subFirst/seeList/seeList?company=' + this.company + '&type=' + type
				})
			}
		}
	}
</script>

<style>
</style>
